from random import randint

for _ in xrange(10):
	n=randint(600,1000)
	print n
	for _ in xrange(n):
		print randint(1,1000),randint(1,1000)
print 0
